package com.jake.springboot.mybatis.mapper;

import com.jake.springboot.mybatis.domain.MobilePhone;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MobilePhoneMapper {

    List<MobilePhone> getByCustomerId(Integer customerId);

    int updateByCustomerId(@Param("phones") List<MobilePhone> phones, @Param("customerId") int customerId);
}
